import React, { Component } from 'react'
import './GoodThings.style.scss'

export default class GoodThings extends Component {
    render() {
        return (
            <div className="goods">
                <div>
                    <h3>发现好物</h3>
                    <p>GOOD THINGS</p>
                </div>
                <div className="hotCon">
                    {
                        this.props.goods && this.props.goods.GOODS_THINGS.map((item,index)=>{
                            return (
                                <div key={index}>
                                    <img src={item.img} alt=""/>
                                    <p>{item.title}</p>
                                    <span>￥{item.price}</span>
                                    <h3>{item.present_title}</h3>
                                </div>
                            )
                        })
                    }
                </div>
            </div>
        )
    }
}
